package com.example.test.bean;

import lombok.Data;

@Data
public class Item {

    /**
     * title : 再拉二个
     * name : {"first":"Zachary","last":"Tong"}
     * publish_date : 2015-02-06
     * price : 49.99
     */

    private String title;
    private NameBean name;
    private String publish_date;
    private String price;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public NameBean getName() {
        return name;
    }

    public void setName(NameBean name) {
        this.name = name;
    }

    public String getPublish_date() {
        return publish_date;
    }

    public void setPublish_date(String publish_date) {
        this.publish_date = publish_date;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public static class NameBean {
        /**
         * first : Zachary
         * last : Tong
         */

        private String first;
        private String last;

        public String getFirst() {
            return first;
        }

        public void setFirst(String first) {
            this.first = first;
        }

        public String getLast() {
            return last;
        }

        public void setLast(String last) {
            this.last = last;
        }
    }
}
